
// import axios from 'axios'
// import {get} from './tools'



// export const postData = () => axios.post('url', {
//   code: 'code',
//   other: 'other',
// }).then( (res) => {
//   return res.data
// }).catch( err => {
//   console.log(err)
// })


// export const getData = () => axios.get(url).then(res => res.data).catch(err => console.log(err))




// export const httpGetData = (params = {}) => {
//   return get("", params)
// } 

// export const httpPostData = (params = {}) => {
//   return post("", params)
// }

import {get, post} from './request'
// import * as config from './config'
// let url = config.base_url
export const getNewsList = (params = {}) => {
  return post( "/szweb/list", params)
}
export const getNewsLista = (params = {}) => {
  return get("/szweb/list", params)
}


